package cn.gene.timeyan.common.exception.handler;

/**
 * 用户异常处理*
 *
 * @author LWG
 * @date 2022/8/2 16:28
 * @since 1.0.0 @gene.cn
 */
public class UserException extends ServiceException {
    public UserException(Integer states, String message) {
        super(message, states);
        if (states == null) {
            throw new IllegalArgumentException("使用UserException必须指定错误时的业务状态码！");
        }
    }
}
